.class Lcom/instagram/android/creation/b/s;
.super Ljava/lang/Object;
.source "ChildFragmentShareModeSelectorDelegate.java"


# instance fields
.field private a:Landroid/view/View;

.field private b:Landroid/view/View;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/view/View;

.field private f:Landroid/view/View;

.field private final g:Landroid/content/res/Resources;


# direct methods
.method constructor <init>(Landroid/content/res/Resources;Landroid/view/View;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 25
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 26
    sget v0, Lcom/facebook/aw;->switch_followers:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->a:Landroid/view/View;

    .line 27
    sget v0, Lcom/facebook/aw;->switch_direct:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->b:Landroid/view/View;

    .line 28
    sget v0, Lcom/facebook/aw;->textview_direct:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->d:Landroid/widget/TextView;

    .line 29
    sget v0, Lcom/facebook/aw;->textview_followers:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->c:Landroid/widget/TextView;

    .line 30
    sget v0, Lcom/facebook/aw;->highlight_direct:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->f:Landroid/view/View;

    .line 31
    sget v0, Lcom/facebook/aw;->highlight_followers:I

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->e:Landroid/view/View;

    .line 32
    iput-object p1, p0, Lcom/instagram/android/creation/b/s;->g:Landroid/content/res/Resources;

    .line 33
    return-void
.end method

.method static synthetic a(Lcom/instagram/android/creation/b/s;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 16
    invoke-direct {p0, p1}, Lcom/instagram/android/creation/b/s;->b(I)V

    return-void
.end method

.method private b(I)V
    .locals 5
    .parameter

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 84
    new-instance v3, Landroid/content/Intent;

    const-string v0, "MetadataFragment.INTENT_ACTION_SHARE_MODE_CHANGE"

    invoke-direct {v3, v0}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 85
    const-string v4, "MetadataFragment.IS_FOLLOWERS_SHARE_SELECTED"

    if-nez p1, :cond_0

    move v0, v1

    :goto_0
    invoke-virtual {v3, v4, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 87
    const-string v0, "MetadataFragment.IS_DIRECT_SHARE_SELECTED"

    if-ne p1, v1, :cond_1

    :goto_1
    invoke-virtual {v3, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 89
    invoke-static {v3}, Lcom/instagram/n/d;->b(Landroid/content/Intent;)V

    .line 90
    return-void

    :cond_0
    move v0, v2

    .line 85
    goto :goto_0

    :cond_1
    move v1, v2

    .line 87
    goto :goto_1
.end method


# virtual methods
.method a()V
    .locals 2

    .prologue
    .line 39
    iget-object v0, p0, Lcom/instagram/android/creation/b/s;->a:Landroid/view/View;

    new-instance v1, Lcom/instagram/android/creation/b/t;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/t;-><init>(Lcom/instagram/android/creation/b/s;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 46
    iget-object v0, p0, Lcom/instagram/android/creation/b/s;->b:Landroid/view/View;

    new-instance v1, Lcom/instagram/android/creation/b/u;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/u;-><init>(Lcom/instagram/android/creation/b/s;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 52
    return-void
.end method

.method a(I)V
    .locals 4
    .parameter

    .prologue
    const/16 v2, 0x8

    const/4 v1, 0x0

    .line 55
    iget-object v3, p0, Lcom/instagram/android/creation/b/s;->f:Landroid/view/View;

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    move v0, v1

    :goto_0
    invoke-virtual {v3, v0}, Landroid/view/View;->setVisibility(I)V

    .line 57
    iget-object v0, p0, Lcom/instagram/android/creation/b/s;->e:Landroid/view/View;

    if-nez p1, :cond_1

    :goto_1
    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 60
    if-nez p1, :cond_2

    .line 61
    iget-object v0, p0, Lcom/instagram/android/creation/b/s;->d:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/instagram/android/creation/b/s;->g:Landroid/content/res/Resources;

    sget v2, Lcom/facebook/at;->metadata_share_to_inactive:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 62
    iget-object v0, p0, Lcom/instagram/android/creation/b/s;->c:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/instagram/android/creation/b/s;->g:Landroid/content/res/Resources;

    sget v2, Lcom/facebook/at;->metadata_share_to_followers:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 69
    :goto_2
    return-void

    :cond_0
    move v0, v2

    .line 55
    goto :goto_0

    :cond_1
    move v1, v2

    .line 57
    goto :goto_1

    .line 65
    :cond_2
    iget-object v0, p0, Lcom/instagram/android/creation/b/s;->c:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/instagram/android/creation/b/s;->g:Landroid/content/res/Resources;

    sget v2, Lcom/facebook/at;->metadata_share_to_inactive:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 67
    iget-object v0, p0, Lcom/instagram/android/creation/b/s;->d:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/instagram/android/creation/b/s;->g:Landroid/content/res/Resources;

    sget v2, Lcom/facebook/at;->metadata_share_to_direct:I

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_2
.end method

.method b()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 72
    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->a:Landroid/view/View;

    .line 73
    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->b:Landroid/view/View;

    .line 74
    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->c:Landroid/widget/TextView;

    .line 75
    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->d:Landroid/widget/TextView;

    .line 76
    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->e:Landroid/view/View;

    .line 77
    iput-object v0, p0, Lcom/instagram/android/creation/b/s;->f:Landroid/view/View;

    .line 78
    return-void
.end method
